package com.timerecording.domain.form;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author smz41
 * @description: TODO
 * @date 2024/4/4
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class RecordTimeAddForm {


    /**
     *
     */
    @ApiModelProperty(value = "主键id")
    private Integer recordId;

    /**
     *
     */
    @ApiModelProperty(value = "当前日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date recordTime;

    /**
     *
     */
    @ApiModelProperty(value = "工作时长")
    @NotNull(message = "工作时长不能为空")
    private Integer workHour;

    /**
     *
     */
    @ApiModelProperty("小时工资从表id")
    private Integer  salaryId;

    /**
     *
     */
    @ApiModelProperty("班次从表id")
    private Integer teamId;

    /**
     *
     */
    @ApiModelProperty("备注|可选")
    private String  remark;
}
